<template>
  <div id="box">
    <!-- 1个盒子 -->
    <div class="container"  @click="goPhotesDetails">
      <div class="picture">
        <img src="../assets/img/001.1.jpg" alt="" />
      </div>
      <!-- introduction:简介 -->
      <div class="introduction">
        <span>法式浪漫-纪实风</span>

        <span class="select">优选 10年品质保证</span>
        <span>145个作品</span>
        <span class="introduction-price">￥3299起</span>
      </div>
    </div>
    <!-- 2个 -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.1.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>历史记忆-复古风</span>

        <span class="select">优选 22年匠心</span>
        <span>890个作品</span>
        <span class="introduction-price">￥2899起</span>
      </div>
    </div>
    <!-- 3个 -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.1.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>龙凤呈祥-中式传统风</span>

        <span class="select">优选 口碑炸裂</span>
        <span>1009个作品</span>
        <span class="introduction-price">￥4899起</span>
      </div>
    </div>
    <!--4个  -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.1.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>甜美清新-韩式风</span>

        <span class="select">优选 口碑炸裂</span>
        <span>1009个作品</span>
        <span class="introduction-price">￥5899起</span>
      </div>
    </div>
    <!--5个  -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.1.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>高贵典雅-欧式风</span>

        <span class="select">优选 口碑炸裂</span>
        <span>1009个作品</span>
        <span class="introduction-price">￥6899起</span>
      </div>
    </div>
    <!--6个  -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>简单素雅-极简风</span>

        <span class="select">优选 口碑炸裂</span>
        <span>1009个作品</span>
        <span class="introduction-price">￥1899起</span>
      </div>
    </div>
    <!--7个  -->
    <div class="container">
      <div class="picture">
        <img src="../assets/img/001.jpg" alt="" />
      </div>

      <!-- introduction:简介 -->
      <div class="introduction">
        <span>森林唯美-清新自然风</span>

        <span class="select">优选 口碑炸裂</span>
        <span>1009个作品</span>
        <span class="introduction-price">￥3899起</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
methods: {
  goPhotesDetails() {
    this.$router.push("/photedetails")
  }
},

}
</script>
<style lang="less" scoped>
#box {
  background-color: #eee;
  .container {
    border: 1px solid #fff;
    background-color: #fff;
    display: flex;
    width: 320px;
    border-radius: 5px;
    user-select: none;
    margin: 10px auto;
    // 左侧缩略图
    .picture {
      width: 30vw;

      margin: 20px 10px 10px 10px;
      img {
        width: 100%;
      }
      // 右侧部分
    }
    .introduction {
      display: flex;
      flex-direction: column;
      margin: 10px 5px;
      > span:first-child {
        font-weight: bold;
      }
      // 优选
      .select {
        background-color: azure;
        font-size: 12px;
        margin: 5px 0;
        padding: 3px;
      }
      // 价格
      .introduction-price {
        color: #ff0000;
        font-weight: bold;
        margin-top: 5px;
      }
      // 作品数量
      .select + span {
        background-color: #fff0f5;
        font-size: 12px;
        margin: 5px 0;
        padding: 3px;
      }
    }
  }
}
</style>
